home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / hyde.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  81 lines

  1. (Comp.sys.handhelds) 
  2. Item: 1868 by cloos at acsu.buffalo.edu 
  3. Author: [James H. Cloos] 
  4.   Subj: On HYDE 
  5.   Date: Fri Feb 01 1991 15:55  
  6.  
  7. I thought that some discussion on how the HYDE library replaces the default 
  8. messages would be worthwhile, if only for those who want messages in 
  9. another language. 
  10.  
  11. Basically the xlib HYDE (XLIB 998 0) does the following: 
  12.  
  13. #0              /* a short representing a lib number            */ 
  14. @7709h          /* Attatch Lib to HOME, takes: 1#               */ 
  15. #0              /* the same short                               */ 
  16. XLIB 998d Nd    /* An ARRY of CHS (CHar String)                 */ 
  17. @764Eh          /* Replace Msg Table, takes: 2#1Arry            */ 
  18.  
  19. This is done for each of the ten default message tables.  NB: As library 
  20. number 2 is already attatched, that step is skiped for #2. 
  21.  
  22. The xlib JECKLE (XLIB 998 1) does the following: 
  23.  
  24. #0              /* a short representing the lib number          */ 
  25. @76AEh          /* Detatch from HOME, takes: 1#                 */ 
  26.  
  27. Again, for lib 2, a small change in procedure.  After detatching it, JECKLE 
  28. immediately reattatches it (using 7709h). 
  29.  
  30. Below I'll show an example of doing this for the FIN library that comes on 
  31. the EQ card.  It is lib number 270d.  It's default message table is: 
  32. (The syntax is from my forthcoming RPL compiler, all numbers are assumed 
  33. hex unless trailed by a b, o, or d.) 
  34.  
  35. ARRY CHS DIM 1 OF 7 "No Solution" "Many or No Solutions" 
  36. "I%YR/PYR \<= -100" "Invalid N" "Invalid PYR" "Invalid #Periods" 
  37. "Undefined TVM Variable" 
  38.  
  39. If we were then to compile the following, it would change those messages to 
  40. the given ones: 
  41.  
  42. :: # 270d ARRY CHS DIM 1 OF 7 "Dis Don't Work Out!" "Duh, I Can't Decide." 
  43. "One EXPENSIVE Account" "Gimme A *good* N" "Gimme a *good* PYR" 
  44. "*HOW* Many Periods???" "I'm Not *That* Smart:)" @764Eh ; 
  45.  
  46. (This would show up on the stack as: 
  47. <270d> Array of String 
  48.  
  49. Notice, that we assume the library is already attached to HOMEDIR, a more 
  50. robust version would check to see if it is attached, and re-attach it if 
  51. not.  (Remember that 270's config code attaches itself.)  To get back to 
  52. the normal message table, either do a system halt (I presume) or the 
  53. following: 
  54.  
  55. :: # 270d @76AEh # 270d @7709 ; 
  56.  
  57. which simple detatches the lib & then re-attaches it. 
  58.  
  59. Hope some of this is useful to someone.  Oh, and Jake, please add 0764Eh to 
  60. the compiled address list with an appropriate name ;-). 
  61.  
  62. -JimC 
  63.  
  64. P.S.    No jokes on the replacement messages above!  22 characters isn't 
  65.         much to work with.  Kudo's to Bill (& Co.??) for those in HYDE. 
  66.  
  67. P.P.S.  Production of rpl is delayed due to my intention to now use 
  68.         star for the MC assembly, and the need therefore to make certain 
  69.         support files work there, too.  You can quote me on this, though: 
  70.         "It will be out R.S.N!" :) :) :) 
  71.  
  72. -- 
  73. James H. Cloos, Jr.             Phone:  +1 716 673-1250 
  74. cloos@ACSU.Buffalo.EDU          Snail:  PersonalZipCode:  14048-0772, USA 
  75. cloos@ub.UUCP                   Quote:  <> 
  76.  
  77. [Note: The HYDE library referred to here, another whimsical brainchild of 
  78.  Bill Wickes (the father of RPL), is in the DNICKEL directory on this disk. 
  79.  -jkh-] 
  80.